# -*- coding: utf-8 -*-
# server.py
# 从wsgiref模块导入:
from wsgiref.simple_server import make_server
# 导入我们自己编写的application函数:
import recommentIm



# 创建一个服务器，IP地址为空，端口是8001，处理函数是application:
httpd4 = make_server('', 8005, recommentIm.item2Vec)
print "Serving HTTP on port 8005..."
# 开始监听HTTP请求:
httpd4.serve_forever()